package s15.e04.myexception;

public class Main {
	public static void main(String[] args) {
		try {
			start();
		} catch (Throwable e) {
			if (e instanceof CallMeException) {
				CallMeException callMeEx = (CallMeException) e;
				System.out.println(callMeEx.getNoOfOperation());
				;
			}
			e.printStackTrace();
		}

	}

	private static void start() {

		callMe();

	}

	private static void callMe() {
		int noOfOperation = 5;
		CallMeException callMeException = new CallMeException(noOfOperation);
		throw new CallMeException(noOfOperation);

	}
}
